<{include file="scenter/block/header.html"}>
<div class="ucenter_t">
    <ul><li class="on">商品管理</li></ul>
	<span class="r"><a href="<{link ctl='scenter/product:create'}>" class="pbtn">添加商品</a></span>
</div>
<div class="ucenter_c">
    <table width="100%" border="0" cellspacing="0" class="table">
    <tr>
        <th class="w-80">ID</th><th>商品</th><th>分类</th><th class="w-100">价格</th>
		<th class="w-50">状态</th><th class="w-50">审核</th><th class="w-100">更新时间</th><th class="w-240"></th>
    </tr>
    <{foreach $items as $item}>
    <tr>
        <td class="left"><label><{$item.product_id}><label></td>
        <td><a href="<{link ctl='mall/product:detail' arg0=$item.product_id}>" target="_blank"><{$item.name|default:'--'}></a></td><td><{$item.cat_title}></td><td><{$item.price}></td>
        <td><{if $item.onsale}><b class="blue">上架</b><{else}><b class="red">下架</b><{/if}></td>
		<td><{if $item.audit}><b class="blue">通过</b><{else}><b class="red">待审</b><{/if}></td>
		<td><a tips="创建时间：<{$item.dateline|format:'Y-m-d H:i:s'}><br />更新时间：<{$item.lastupdate|format:'Y-m-d H:i:s'}>"><{$item.lastupdate|format}></a></td>
        <td>
            <a href="<{link ctl='scenter/product:spec' arg0=$item.product_id}>" title="商品规格" class="pbtn">规格</a>
            <a href="<{link ctl='scenter/product:photo' arg0=$item.product_id}>" title="相册" class="pbtn">相册</a>
            <a href="<{link ctl='scenter/product:edit' arg0=$item.product_id}>" class="pbtn">编辑</a>
            <a href="<{link ctl='scenter/product:delete' arg0=$item.product_id}>" mini-act="confirm:您确定要删除该商品"  class="pbtn red">删除</a>
        </td>
    </tr>
    <{foreachelse}>
     <tr><td colspan="20"><p class="tips"><span class="notice">没有数据</span></p></td></tr>
    <{/foreach}>
    </table>
	<div class="page"><{$pager.pagebar}></div>
</div>
<{include file="scenter/block/footer.html"}>